/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
package com.wealth.member.service;

import org.hibernate.service.spi.ServiceException;

import com.wealth.member.entity.Member;
import com.wealth.member.entity.Membership;
import com.wealth.system.entity.User;

import iaas.service.IBaseService;
import iaas.utils.ResultObject;

/**
 * @author chan
 */
public interface IMemberService extends IBaseService<Member> {

	/** 绑定手机号码 */
	public ResultObject bindTelephone(Long memberid, Long corpid,
			String telephone);

	/** 注册 */
	public Membership reg(String openid, String headimgurl, String nickname,
			Long corpid);

	/**
	 * 查询一个会员
	 */
	public Member getMember(Long id) throws ServiceException;
 
	 /**
	  * PC端注册会员
	  * @param member
	  * @return
	  */
	 public Member regMember(Member member);
 
	/**
	 * 修改密码
	 */
	public void updatePassword(Member member) throws ServiceException;
 

	/**
	 * 编辑会员
	 */
	public void updateMember(Member entity) throws ServiceException;

	/** 查询用户 通过登陆名 */
	public Member findMemberByUsername(String username);

}
